package com.bankcomm.voice;
import com.bankcomm.R;
import android.media.AudioManager;
import android.os.Bundle;
import com.bankcomm.voice.TalkFragment;
import com.xioai.framework.voicecontrol.VcSession;

/**
 * 语音DEMO
 * @author liujia (liujia9234@126.com)
 * @data @2012-3-29
 * @version 1.0
 * <ul>
 * 		<li>1.0 创建</li>
 * </ul>
 */
public class BankCommVoiceActivity extends VoiceFrameActivity {

	public static final String TAG = "BankCommVoiceActivity";
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		//设置默认语音对话碎片
		pushFragment(getResources().getString(R.string.talk_title), new TalkFragment(vc));
		disWordOrPlayer(getResources().getString(R.string.voice_welcome_msg), true, true);
		// 设置音量控制为媒体
		setVolumeControlStream(AudioManager.STREAM_MUSIC);
	}

	@Override
	protected void onDestroy() {
		// TODO Auto-generated method stub
		super.onDestroy();
		VcSession.getInstance().onCreateSession();
	}
	
	
}
